﻿/*----------------------------------------------------------------
//  <copyright file="IMasterSlaveSplitPolicy.cs" company="MicroCloud@151504200868">
//      Copyright © 2020-2024 MicroCloud Corporation, All rights reserved.
//  </copyright>
//  <site>https://gitee.com/chenmm123/microclouds</site>
//  <last-editor>cmm</last-editor>
//  <last-date>2022-11-14 11:09</last-date>
//----------------------------------------------------------------*/

namespace MicroCloud.Entity
{
    #region "定义数据库主从分离策略"
    /// <summary>
    /// 定义数据库主从分离策略
    /// </summary>
    public interface IMasterSlaveSplitPolicy
    {
        #region "方法"
        #region "是否前往从数据库"
        /// <summary>
        /// 是否前往从数据库
        /// </summary>
        /// <param name="options">数据上下文选项</param>
        /// <returns></returns>
        bool IsToSlaveDatabase(DbContextOption options);
        #endregion

        #endregion

    }
    #endregion

}
